package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.PageUtil;
import com.ruoyi.system.domain.TProdInv;
import com.ruoyi.system.domain.dto.ITProdInvDTO;
import com.ruoyi.system.domain.vo.ITProdInvVO;
import com.ruoyi.system.mapper.TProdInvMapper;
import com.ruoyi.system.service.ITProdInvService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wux
 * @date 2023/5/31 16:05
 */
@Service
public class TProdInvServiceImpl extends ServiceImpl<TProdInvMapper, TProdInv> implements ITProdInvService {
    @Override
    public List<ITProdInvVO> listByPage(ITProdInvDTO params) {
        PageUtil.startPage(params);
        return this.baseMapper.list(params);
    }

    @Override
    public List getInventory() {
        return baseMapper.getInventoryByProdType();
    }
}
